package cn.jtcoding.xhs.model.convert;

import cn.jtcoding.xhs.model.dataobject.CategoryDO;
import cn.jtcoding.xhs.model.vo.CategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author jason.tang
 * @Date 2020/8/4 20:26
 * @Desc
 */

@Mapper(componentModel = "spring", imports = {LocalDateTime.class})
public interface CategoryConvert {

    CategoryConvert INSTANCE = Mappers.getMapper(CategoryConvert.class);

    @Mappings({
    })
    CategoryVO convert(CategoryDO categoryDO);

    List<CategoryVO> categoriesToVO(List<CategoryDO> categoryDOs);
}
